//主程序
public class Test {
	public static void main(String[] args) {
		System.out.printf("一辆普通的小汽车");
		Car aCar = new Car();
		aCar.Start(30.5);// 启动
		aCar.InfoShow();
		aCar.Stop();
		aCar.InfoShow();

		System.out.printf("\n\n一个机器人\n");
		Robot aRobot = new Robot();
		aRobot.Say("今天天气很好，适合上自习。");

		System.out.printf("\n\n现代化的小汽车\n");
		CarModern aModernCar = new CarModern();
		aModernCar.Start(300.5);// 启动
		aModernCar.InfoShow();
		aModernCar.Say("我要停车了\n");
		aModernCar.Stop();
		aModernCar.InfoShow();

		System.out.printf("\n\n现代化的卫星\n");
		Satellite aSatellite = new Satellite();
		aSatellite.Say("我是一颗卫星\n");
		aSatellite.Start(3000.5);// 启动
		aSatellite.InfoShow();
		aSatellite.Say("我要停止了\n");
		aSatellite.Stop();
		aSatellite.InfoShow();

	}
}
